﻿using System;

namespace TextEditor
{
    

    public class A_InsertTableColLeft : A_Action
    {
        public override string ActionName()
        {
            return "tablecolinsertleft";
        }

        public override A_Action Clone()
        {
            A_InsertTableColLeft left = new A_InsertTableColLeft();
            left.BaseCloneFrom(this);
            return left;
        }

        public override bool Execute()
        {
            base.myOwnerDocument._InsertTableCol(0);
            return true;
        }

        public override bool isEnable()
        {
            return base.myOwnerDocument.GetInTable(base.myOwnerDocument.Content.CurrentElement) == null ? false : true;
        }

        public override bool UIExecute()
        {
            base.myOwnerDocument._InsertTableCol(0);
            return true;
        }
    }
}

